using HotelManageSystem.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HotelManageSystem.Data {
    public interface IAuthRepository {
        Task<ServiceResponse<string>> FirstRegister(AddWorkerDto newWorker);
        Task<ServiceResponse<string>> Register(AddWorkerDto worker);
        Task<ServiceResponse<object>> Login(string workerName, string password);
        Task<bool> UserExists(string username);
    }
}